﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace JESAI.HttpRequestMonitor.Core.Abstracts
{
    /// <summary>
    /// 请求信息创建者模式接口
    /// </summary>
    public interface IRequestModelBuilder
    {
        /// <summary>
        /// 创建请求信息
        /// </summary>
        /// <param name="context"> 请求上下文 </param>
        /// <param name="stopwatch"> 计时器 </param>
        /// <returns></returns>
        (IRequestModel, IRequestDetailModel) Build(HttpContext context, Stopwatch stopwatch);
    }
}
